package com.dog.basics.bean.dto.api.mtkj;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class ApiShopFromDto {

    /**
     * 店铺名称
     */
    @ApiModelProperty(value = "店铺名称", dataType = "String字符串", required = false)
    private String name;

    /**
     * 经度
     */
    @NotNull(message = "经度不能为空")
    @ApiModelProperty(value = "经度", dataType = "BigDecimal", required = true)
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @NotNull(message = "纬度不能为空")
    @ApiModelProperty(value = "纬度", dataType = "BigDecimal", required = true)
    private BigDecimal latitude;

    /**
     *距离范围（附近多少公里内）
     */
    @NotNull(message = "距离范围不能为空")
    @ApiModelProperty(value = "距离范围（附近多少公里内）",dataType = "Double",required = true)
    private Double distance;


    /**
     * 销售数量
     */
    @ApiModelProperty(value = "销售数量 0降序 1升序 没有就是没选",dataType = "Integer", required = false)
    private Integer sales;

    /**
     * 店铺评分(0-5)
     */
    @ApiModelProperty(value = "评分 0降序 1升序 没有就是没选",dataType = "Integer", required = false)
    private Integer stars;
}
